home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / Libraries / SpriteEngine / SpriteHandlers.h < prev    next >
Text File  |  1995-03-10  |  595b  |  21 lines

  1. /* Application-dependent definitions */
  2.  
  3. /* Data structure describing a sprite*/
  4. /* Add new fields as necessary */
  5.  
  6. /**/
  7.  
  8. typedef struct SpriteRecord {
  9. /*Game entity data - edit as desired*/
  10.     Point            speed;                /*  */
  11. /*Sprite data - don't remove*/
  12.     Point            position;            /* Integer screen coordinates! */
  13.     GrafPtr            face;                /* Apprearance of the sprite */
  14.     Rect            drawingRect;        /* Where is it? */
  15. /*List pointers - don't remove*/
  16.     struct SpriteRecord    *prev, *next;        /* Next enity in the list */
  17. } SpriteRecord;
  18.  
  19. // Decomment this if fixedPointPosition is declared below!
  20. //#define    _hasfixedpoint
  21.